﻿/* 遮罩背景 */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

/* 廣告視窗 */
#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 12px 40px rgba(0, 0, 0, 0.15); /* 增強陰影 */
    padding: 20px;
    text-align: center;
    display: none;
    z-index: 1000;
    animation: float 3s ease-in-out infinite; /* 添加飄浮動畫 */
}

/* 飄浮動畫 */
/*@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px); /* 上下浮動 10px */
    /*}
}*/

/* 關閉按鈕 */
#popup .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease; /* 增加過渡效果 */
}

#popup .close-btn:hover {
    color: #000; /* 滑鼠懸停時變深 */
}

#popup h2 {
    font-size: 18px;
    text-align:left;
    font-family:'Microsoft JhengHei UI',

}

#popup p {
    font-size: 16px;
    line-height: 1.5em;
    padding:0.6em;
    text-indent: 2em;
       color:#243776;

    /*font-weight: 800;*/
}

#popup  .Ptextright{
       font-size: 16px;
    line-height: 1.5em;
    padding:0.6em;
    text-indent: 2em;
       color:#243776;
    text-align:right;
   font-weight:700;
}

    #popup P .spancolor {
        color: blue;
        text-decoration: underline;
    }

/* 按鈕美化 */
#popup .popbtn {
    margin-top: 15px;
    padding: 20px 40px;
    font-size:24px;
    background-color: #0078D7;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* 增加 transform 過渡 */
}

#popup .popbtn:hover {
    background-color: #005EA6;
    transform: translateY(-2px); /* 滑鼠懸停時微微上浮 */
}







        /* 遮罩背景 */
        /*#overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            z-index: 999;
        }*/

        /* 廣告視窗 */
        /*#popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width:600px;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
            padding: 20px;
            text-align: center;
            display: none;
            z-index: 1000;
        }*/

        /* 關閉按鈕 */
        /*#popup .close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 20px;
            cursor: pointer;
            color: #666;
        }

            #popup h2 {

                font-size:22px;
            }

            #popup p {
                 font-size:22px;
                 line-height:1.5em;
                 padding:1em;
                 font-weight:800;
            }*/

        /* 按鈕美化 */
        /*#popup .popbtn {
            margin-top: 15px;
            padding: 10px 20px;
            background-color: #0078D7;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        #popup .popbtn:hover {
            background-color: #005EA6;
        }*/
 